using UnityEngine;

namespace DG.Tweening
{
    // [Assembly-CSharp-firstpass.dll].DG.Tweening.DOTweenProShortcuts
    public static class DOTweenProShortcuts
    {
        
        #region DG.Tweening.DOTweenProShortcuts.<>c__DisplayClass1_0
        // [Assembly-CSharp-firstpass.dll].DG.Tweening.DOTweenProShortcuts.<>c__DisplayClass1_0
        private sealed class __c__DisplayClass1_0
        {
            // Fields
            public UnityEngine.Transform target;
            
            // Methods
            public __c__DisplayClass1_0()
            {
            
            }
            internal UnityEngine.Vector3 <DOSpiral>b__0()
            {
                return this.target.localPosition;
            }
            internal void <DOSpiral>b__1(UnityEngine.Vector3 x)
            {
                this.target.localPosition = new UnityEngine.Vector3() {x = x.x, y = x.y, z = x.z};
            }
        
        }
        
        #endregion
        
        
        #region DG.Tweening.DOTweenProShortcuts.<>c__DisplayClass2_0
        // [Assembly-CSharp-firstpass.dll].DG.Tweening.DOTweenProShortcuts.<>c__DisplayClass2_0
        private sealed class __c__DisplayClass2_0
        {
            // Fields
            public UnityEngine.Rigidbody target;
            
            // Methods
            public __c__DisplayClass2_0()
            {
            
            }
            internal UnityEngine.Vector3 <DOSpiral>b__0()
            {
                return this.target.position;
            }
        
        }
        
        #endregion
        
        // Methods
        private static DOTweenProShortcuts()
        {
            536892787 = new DG.Tweening.Plugins.SpiralPlugin();
        }
        public static DG.Tweening.Tweener DOSpiral(UnityEngine.Transform target, float duration, System.Nullable<UnityEngine.Vector3> axis, DG.Tweening.SpiralMode mode = 0, float speed = 1, float frequency = 10, float depth = 0, bool snapping = False)
        {
            float val_15;
            float val_16;
            float val_17;
            float val_18;
            float val_19;
            object val_1 = 536898169;
            val_1 = new System.Object();
            mem[536898185] = target;
            float val_15 = 1E-06f;
            val_15 = System.Math.Abs(speed) * val_15;
            float val_16 = 8f;
            val_15 = 0f ?? speed;
            val_16 = mem[536889545] * val_16;
            float val_2 = (val_15 > val_16) ? (val_15) : (val_16);
            if((axis.Value & 255) != 0)
            {
                goto label_3;
            }
            
            float val_17 = mem[536895737];
            float val_18 = mem[536895737] + 4;
            val_17 = (axis.Value >> 32) - val_17;
            val_18 = mode - val_18;
            val_16 = (mode >> 32) - (mem[536895737] + 8);
            val_17 = val_17 * val_17;
            val_18 = val_18 * val_18;
            val_17 = val_17 + val_18;
            val_17 = val_16 * val_16;
            val_18 = val_17 + val_17;
            if(val_18 >= 0)
            {
                goto label_5;
            }
            
            label_3:
            System.Nullable<UnityEngine.Vector3> val_6;
            val_18 = mem[mem[536895737] + 72];
            val_18 = mem[536895737] + 72;
            val_19 = mem[mem[536895737] + 72 + 4];
            val_19 = mem[536895737] + 72 + 4;
            val_16 = mem[mem[536895737] + 80];
            val_16 = mem[536895737] + 80;
            val_6 = new System.Nullable<UnityEngine.Vector3>(value:  new UnityEngine.Vector3() {x = val_18, y = val_19, z = val_16});
            label_5:
            DG.Tweening.Core.DOGetter<UnityEngine.Vector3> val_8 = 536873963;
            val_8 = new DG.Tweening.Core.DOGetter<UnityEngine.Vector3>(object:  val_1, method:  1610682569);
            DG.Tweening.Core.DOSetter<UnityEngine.Vector3> val_9 = 536874007;
            val_9 = new DG.Tweening.Core.DOSetter<UnityEngine.Vector3>(object:  val_1, method:  1610682571);
            Unknown val_10 = val_6.Value.Value;
            mem2[0] = snapping;
            mem2[0] = (val_15 < 0) ? 1f : speed;
            mem2[0] = frequency;
            mem2[0] = depth;
            mem2[0] = W4 & 1;
            return (DG.Tweening.Tweener)DG.Tweening.TweenSettingsExtensions.SetTarget<System.Object>(t:  DG.Tweening.DOTween.To<UnityEngine.Vector3, UnityEngine.Vector3, DG.Tweening.Plugins.SpiralOptions>(plugin:  DG.Tweening.Plugins.SpiralPlugin.Get(), getter:  val_8, setter:  val_9, endValue:  new UnityEngine.Vector3() {x = val_18, y = val_19, z = val_16}, duration:  duration), target:  mem[536898185]);
        }
        public static DG.Tweening.Tweener DOSpiral(UnityEngine.Rigidbody target, float duration, System.Nullable<UnityEngine.Vector3> axis, DG.Tweening.SpiralMode mode = 0, float speed = 1, float frequency = 10, float depth = 0, bool snapping = False)
        {
            float val_15;
            float val_16;
            float val_17;
            float val_18;
            float val_19;
            object val_1 = 536898171;
            val_1 = new System.Object();
            mem[536898187] = target;
            float val_15 = 1E-06f;
            val_15 = System.Math.Abs(speed) * val_15;
            float val_16 = 8f;
            val_15 = 0f ?? speed;
            val_16 = mem[536889545] * val_16;
            float val_2 = (val_15 > val_16) ? (val_15) : (val_16);
            if((axis.Value & 255) != 0)
            {
                goto label_3;
            }
            
            float val_17 = mem[536895737];
            float val_18 = mem[536895737] + 4;
            val_17 = (axis.Value >> 32) - val_17;
            val_18 = mode - val_18;
            val_16 = (mode >> 32) - (mem[536895737] + 8);
            val_17 = val_17 * val_17;
            val_18 = val_18 * val_18;
            val_17 = val_17 + val_18;
            val_17 = val_16 * val_16;
            val_18 = val_17 + val_17;
            if(val_18 >= 0)
            {
                goto label_5;
            }
            
            label_3:
            System.Nullable<UnityEngine.Vector3> val_6;
            val_18 = mem[mem[536895737] + 72];
            val_18 = mem[536895737] + 72;
            val_19 = mem[mem[536895737] + 72 + 4];
            val_19 = mem[536895737] + 72 + 4;
            val_16 = mem[mem[536895737] + 80];
            val_16 = mem[536895737] + 80;
            val_6 = new System.Nullable<UnityEngine.Vector3>(value:  new UnityEngine.Vector3() {x = val_18, y = val_19, z = val_16});
            label_5:
            DG.Tweening.Core.DOGetter<UnityEngine.Vector3> val_8 = 536873963;
            val_8 = new DG.Tweening.Core.DOGetter<UnityEngine.Vector3>(object:  val_1, method:  1610682575);
            DG.Tweening.Core.DOSetter<UnityEngine.Vector3> val_9 = 536874007;
            val_9 = new DG.Tweening.Core.DOSetter<UnityEngine.Vector3>(object:  mem[536898187], method:  1610691807);
            Unknown val_10 = val_6.Value.Value;
            mem2[0] = snapping;
            mem2[0] = (val_15 < 0) ? 1f : speed;
            mem2[0] = frequency;
            mem2[0] = depth;
            mem2[0] = W4 & 1;
            return (DG.Tweening.Tweener)DG.Tweening.TweenSettingsExtensions.SetTarget<System.Object>(t:  DG.Tweening.DOTween.To<UnityEngine.Vector3, UnityEngine.Vector3, DG.Tweening.Plugins.SpiralOptions>(plugin:  DG.Tweening.Plugins.SpiralPlugin.Get(), getter:  val_8, setter:  val_9, endValue:  new UnityEngine.Vector3() {x = val_18, y = val_19, z = val_16}, duration:  duration), target:  mem[536898187]);
        }
    
    }

}
